﻿<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="HDMonitoringMeds.aspx.cs" Inherits="WebApplication2.HDMonitoringMeds" %>

<asp:Content runat="server" ID="buttonContent" ContentPlaceHolderID="buttonContent">
          <asp:ImageButton ID="ImageButton1" runat="server" Height="30px" Width="30px" ImageUrl="~/Images/download.png" BackColor="#E2E2E2"/>
                <br />
                <asp:ImageButton ID="ImageButton2" runat="server" Height="30px" Width="30px"  BackColor="#E2E2E2" ImageUrl="~/Images/Print.png"/>
                <br />
                <asp:ImageButton ID="ImageButton3" runat="server" Height="30px" Width="30px"   BackColor="#E2E2E2" ImageUrl="~/Images/Unsign.png"/>
                <br />
                <asp:ImageButton ID="ImageButton4" runat="server" Height="30px" Width="30px" BackColor="#E2E2E2" ImageUrl="~/Images/Save.png"/>
                <br />
                <asp:ImageButton ID="ImageButton5" runat="server" Height="30px" Width="30px"  BackColor="#E2E2E2" ImageUrl="~/Images/Cancel.png"/>
                <br />
                <asp:ImageButton ID="ImageButton6" runat="server" Height="30px" Width="30px"  BackColor="#E2E2E2" ImageUrl="~/Images/Delete.png"/>
                <br />
                <asp:ImageButton ID="ImageButton7" runat="server" Height="30px" Width="30px" BackColor="#E2E2E2" ImageUrl="~/Images/Enable.png"/>
                <br />
                <asp:ImageButton ID="ImageButton8" runat="server" Height="30px" Width="30px" BackColor="#E2E2E2" ImageUrl="~/Images/Exit.png"/>
</asp:Content>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">

     <style>
         .lblMrn {
            margin-left:100px
        }
    </style>

    <asp:Label ID="lblMonitoring" runat="server" Font-Size="Small" Height="10px" Font-Names="Calibri"></asp:Label>
    <asp:Label ID="lblMrn" CssClass="lblMrn"  runat="server" Font-Size="Small" Height="10px" Width="120px" ></asp:Label>
    <asp:Label ID="lblPatientName"  runat="server" Font-Size="Small" Height="10px" Width="150px" ></asp:Label>
    <br />
    <asp:Label ID="lblInCentreMeds"  runat="server" Font-Size="Small" Height="10px" Width="150px" ></asp:Label>

    <br />

    <div style="overflow:auto">
     <asp:GridView AutoGenerateColumns="False" runat="server" ID="GridView1" BackColor="White" BorderColor="#3366CC" BorderWidth="1px" CellPadding="4" BorderStyle="None" Font-Names="Calibri" Font-Size="Small" AutoGenerateEditButton="true" OnRowDataBound="GridView1_RowDataBound" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing">
   <Columns>

         <asp:TemplateField>

                <ItemTemplate>

                    <asp:Label ID="lblTime_administered" runat="server" Text='<%# Eval("Time_administered") %>'></asp:Label>    

                </ItemTemplate>

                <EditItemTemplate>

                <asp:TextBox ID="tbxTime_administered" runat="Server" Text='<%# Eval("Time_administered") %>'  Width="60px"  Font-Size="small" Height="10px"></asp:TextBox>

                </EditItemTemplate>

                <FooterTemplate>

                <asp:TextBox ID="txtTime_administered" runat="Server"  Width="60px"  Font-Size="small" Height="10px"></asp:TextBox>

                </FooterTemplate>

                </asp:TemplateField>

         <asp:TemplateField>

                <ItemTemplate>           
                    <asp:Label ID="lblTime_administered2" runat="server" Text='<%# Eval("Time_administered2") %>'></asp:Label>    
                </ItemTemplate>

                <EditItemTemplate>

                <asp:TextBox ID="tbxTime_administered2" runat="Server" Text='<%# Eval("Time_administered2") %>'  Width="40px"  Font-Size="small" Height="10px"></asp:TextBox>

                </EditItemTemplate>

                <FooterTemplate>

                <asp:TextBox ID="txtTime_administered2" runat="Server"  Width="40px"  Font-Size="small" Height="10px"></asp:TextBox>

                </FooterTemplate>

                </asp:TemplateField>

         <asp:TemplateField>

                <ItemTemplate>
                     <asp:Label ID="lblMedication_fluid" runat="server" Text='<%# Eval("Medication_fluid") %>'></asp:Label>    
                </ItemTemplate>

                <EditItemTemplate>

                 <asp:DropDownList ID="ddlMedication_fluid" runat="server"></asp:DropDownList>

                </EditItemTemplate>

                <FooterTemplate>

                    <asp:DropDownList ID="ddlMedication_fluid1" runat="server"></asp:DropDownList>

                </FooterTemplate>

                </asp:TemplateField>

         <asp:TemplateField>

                <ItemTemplate>
                    <asp:Label ID="lblStrength" runat="server" Text='<%# Eval("Strength") %>'></asp:Label>                  
                </ItemTemplate>

                <EditItemTemplate>

                 <asp:DropDownList ID="ddlStrength" runat="server"></asp:DropDownList>

                </EditItemTemplate>

                <FooterTemplate>

                    <asp:DropDownList ID="ddlStrength1" runat="server"></asp:DropDownList>

                </FooterTemplate>

                </asp:TemplateField>

          <asp:TemplateField>

                <ItemTemplate>
                     <asp:Label ID="lblRoute" runat="server" Text='<%# Eval("Route") %>'></asp:Label>   
                </ItemTemplate>

                <EditItemTemplate>

                 <asp:DropDownList ID="ddlRoute" runat="server"></asp:DropDownList>

                </EditItemTemplate>

                <FooterTemplate>

                    <asp:DropDownList ID="ddlRoute1" runat="server"></asp:DropDownList>

                </FooterTemplate>

                </asp:TemplateField>

        <asp:TemplateField>

                <ItemTemplate>
                    <asp:Label ID="lblDose_Ordered" runat="server" Text='<%# Eval("Dose_Ordered") %>'></asp:Label>   
                </ItemTemplate>

                <EditItemTemplate>

                 <asp:DropDownList ID="ddlDose_Ordered" runat="server"></asp:DropDownList>

                </EditItemTemplate>

                <FooterTemplate>

                    <asp:DropDownList ID="ddlDose_Ordered1" runat="server"></asp:DropDownList>

                </FooterTemplate>

                </asp:TemplateField> 
       
       <asp:TemplateField>
                <ItemTemplate>
                <asp:Label ID="lblMed_Type" runat="server" Text='<%# Eval("Med_Type") %>'></asp:Label>   
                </ItemTemplate>

                <EditItemTemplate>

                 <asp:DropDownList ID="ddlMed_Type" runat="server"></asp:DropDownList>

                </EditItemTemplate>

                <FooterTemplate>

                 <asp:DropDownList ID="ddlMed_Type1" runat="server"></asp:DropDownList>

                </FooterTemplate>

                </asp:TemplateField> 

        <asp:TemplateField>

                <ItemTemplate>
                <asp:Label ID="lblFrequency" runat="server" Text='<%# Eval("Frequency") %>'></asp:Label>   
                </ItemTemplate>

                <EditItemTemplate>

                 <asp:DropDownList ID="ddlFrequency" runat="server"></asp:DropDownList>

                </EditItemTemplate>

                <FooterTemplate>

                 <asp:DropDownList ID="ddlFrequency1" runat="server"></asp:DropDownList>

                </FooterTemplate>

                </asp:TemplateField> 

        <asp:TemplateField>

                <ItemTemplate>
                <asp:Label ID="lblDose_Given" runat="server" Text='<%# Eval("Dose_Given") %>'></asp:Label> 
                </ItemTemplate>

                <EditItemTemplate>

                 <asp:DropDownList ID="ddlDose_Given" runat="server"></asp:DropDownList>

                </EditItemTemplate>

                <FooterTemplate>

                 <asp:DropDownList ID="ddlDose_Given1" runat="server"></asp:DropDownList>

                </FooterTemplate>

                </asp:TemplateField> 
  
       <asp:TemplateField>

                <ItemTemplate>
                <asp:Label ID="lblWitness_By" runat="server" Text='<%# Eval("Witness_By") %>'></asp:Label> 
                </ItemTemplate>

                <EditItemTemplate>

                 <asp:DropDownList ID="ddlWitness_By" runat="server"></asp:DropDownList>

                </EditItemTemplate>

                <FooterTemplate>

                 <asp:DropDownList ID="ddlWitness_By1" runat="server"></asp:DropDownList>

                </FooterTemplate>

                </asp:TemplateField> 
      
        <asp:TemplateField>

                <ItemTemplate>
                <asp:Label ID="lblSignoff_by" runat="server" Text='<%# Eval("Signoff_by") %>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>

                 <asp:DropDownList ID="ddlSignoff_by" runat="server"></asp:DropDownList>

                </EditItemTemplate>

                <FooterTemplate>

                 <asp:DropDownList ID="ddlSignoff_by1" runat="server"></asp:DropDownList>

                </FooterTemplate>

                </asp:TemplateField> 

         <asp:TemplateField>
                <ItemTemplate>
                <asp:Label ID="lblComments2" runat="server" Text='<%# Eval("Comments2") %>'></asp:Label>
                </ItemTemplate>

                <EditItemTemplate>

                <asp:TextBox ID="tbxComments2" runat="Server" Text='<%# Eval("Comments2") %>'  Width="40px"  Font-Size="small" Height="10px"></asp:TextBox>

                </EditItemTemplate>

                <FooterTemplate>

                <asp:TextBox ID="txtComments2" runat="Server"  Width="40px"  Font-Size="small" Height="10px"></asp:TextBox>

                </FooterTemplate>

                </asp:TemplateField>

        </Columns>
         <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
         <HeaderStyle BackColor="#000099" Font-Bold="True" ForeColor="#CCCCFF" />
         <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
         <RowStyle BackColor="#CCFFFF" ForeColor="Black" />
         <SelectedRowStyle BackColor="#009999" ForeColor="#CCFF99" Font-Bold="True" />
         <SortedAscendingCellStyle BackColor="#EDF6F6" />
         <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
         <SortedDescendingCellStyle BackColor="#D6DFDF" />
         <SortedDescendingHeaderStyle BackColor="#002876" />

          <EmptyDataTemplate>
            <tr style="background-color:blue;">
            <th scope="col">
                <asp:Label ID="lblDate2" Text="1" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
            <th scope="col">
                <asp:Label ID="lblTime2" Text="2" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
            <th scope="col">
                <asp:Label ID="lblMedications2" Text="3" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
            <th scope="col">
                <asp:Label ID="lblStrengths2" Text="4" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
            <th scope="col">
                <asp:Label ID="lblRoute2" Text="5" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
             <th scope="col">
                <asp:Label ID="lblDosageordered2" Text="6" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
            <th scope="col">
                <asp:Label ID="lblMedicationsType2" Text="7" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
            <th scope="col">
                <asp:Label ID="lblFrequency2" Text="8" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
            <th scope="col">
                <asp:Label ID="lblDosageGiven2" Text="9" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
            <th scope="col">
                <asp:Label ID="lblWitnessby" Text="9" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
            <th scope="col">
                <asp:Label ID="lblSignOffby" Text="9" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
              <th scope="col">
                <asp:Label ID="lblComments" Text="9" runat="server" Width="60px" Font-Size="Small" Height="10px"></asp:Label>
            </th>
            </tr>

            <tr>
            <td>
            <asp:TextBox ID="AddDate2" Width="60px" Font-Size="Small" Height="10px" runat="server" />
            </td>
            <td>
                <asp:TextBox ID="AddTime2" Width="60px" Font-Size="Small" Height="10px" runat="server" />
            </td>
            <td>
                <asp:DropDownList ID="AddMedications" Width="60px" runat="server"></asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="AddStrength" Width="60px" runat="server"></asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="addRoute" Width="60px" runat="server"></asp:DropDownList>
            </td>
             <td>
                <asp:DropDownList ID="addDosageordered" Width="60px" runat="server"></asp:DropDownList>
            </td>
             <td>
                <asp:DropDownList ID="AddMedicationsType" Width="60px" runat="server"></asp:DropDownList>
            </td>
             <td>
                <asp:DropDownList ID="Addfrequency" Width="60px" runat="server"></asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="AddDosageGiven" Width="60px" runat="server"></asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="addWitnessby" Width="60px" runat="server"></asp:DropDownList>
            </td>
            <td>
                <asp:DropDownList ID="addSignOffby" Width="60px" runat="server"></asp:DropDownList>
            </td>
            <td>
                <asp:TextBox ID="addComments" Width="60px" Font-Size="Small" Height="10px" runat="server" />
            </td>
              </tr>
          </EmptyDataTemplate>
</asp:GridView>
    </div>

    <br/>
    <asp:Label ID="Label1" runat="server" Text="Label" Font-Size="Small" Height="10px"></asp:Label>

      <div style="width:1000px; height:50px">
        <asp:TextBox ID="tbxHdComments" runat="server" CssClass="tbxHdComments" Width="1000px" Height="50px" TextMode="MultiLine"></asp:TextBox>
    </div>

     <style>
        .tbxHdComments {
        resize:none
        }
         </style>
</asp:Content>